package cn.guet.log.feign;

import cn.guetzjb.core.constant.SecurityConstants;
import cn.guetzjb.core.entity.R;
import cn.guetzjb.sys.domain.SysOperLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteLogFeign", value = "sys-user-server")
public interface AsyncLogFeign {

    @PostMapping("/log/add")
    R add(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
